package com.greenbook.service.impl;

import com.greenbook.entity.NoteCategory;
import com.greenbook.mapper.NoteCategoryMapper;
import com.greenbook.service.NoteCategoryService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
@Slf4j
public class NoteCategoryImpl implements NoteCategoryService {
    private final NoteCategoryMapper noteCategoryMapper;
    /**
     * 列出所有笔记分类
     * @return 笔记分类列表
     */
    @Override
    public List<NoteCategory> listAll() {
        return noteCategoryMapper.selectList(null);
    }
}
